var sd=require("silly-datetime");
var http=require('http');

var app=http.createServer((req,res)=>{
    res.writeHead(200,{
        "ContentType":"text/html;charset=utf-8"
    });

    var time=sd.format(new Date(),"YYYY-MM-DD HH:mm:ss");

    res.write('当前时间：'+time);

    res.end();
});

app.listen(8002);

